package com.atguigu.headline.dao;

import com.atguigu.headline.pojo.NewsHeadline;
import com.atguigu.headline.pojo.vo.HeadlineDetailVo;
import com.atguigu.headline.pojo.vo.HeadlinePageVo;
import com.atguigu.headline.pojo.vo.HeadlineQueryVo;

import java.util.List;
import java.util.Map;

public interface NewsHeadLineDao {
    List<HeadlinePageVo> queryPageList(HeadlineQueryVo headlineQueryVo);

    int queryTotalCount(HeadlineQueryVo headlineQueryVo);

    void increasePageViews(int hid);

    HeadlineDetailVo findHeadlineDetail(int hid);

    void insert(NewsHeadline newsHeadline);

    NewsHeadline query();

    int update(NewsHeadline newsHeadline);

    int delte(int hid);
}
